package com.qs.mapper;

import com.qs.pojo.entity.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qs.pojo.vo.PayInfoVo;
import com.qs.pojo.vo.WeekDayVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单信息表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-12-07
 */
@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    /**
     * 获取当前用户的本周消费
     * @param userId
     * @return
     */
    List<WeekDayVo> findWeekdayData(@Param("userId") Integer userId);

    /**
     * 获取商户一周的流水
     * @param orderIds
     * @return
     */
    List<PayInfoVo> findBusinessWeekdayData(List<String> orderIds);
}
